
import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
import * as echarts from 'echarts'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import Axios from '@/utli/axios.js'
import moment from 'moment'
import vueCropper from 'vue-cropper'


Vue.use(vueCropper)
Vue.use(ElementUI)
Vue.prototype.$axios = Axios
Vue.filter('timeWith',(str,partten = 'YYYY-MM-DD HH:mm:ss') =>{
  return moment(str).format(partten)
})
Vue.filter('dateFormat', (str, partten = "YYYY-MM-DD") => {
    return moment(str).format(partten);
})
Vue.prototype.$echarts = echarts
Vue.component('VueEcharts', echarts)

Vue.use(ElementUI)
Vue.prototype.$axios = Axios
Vue.config.productionTip = false
Vue.component(Button.name, Button);
Vue.component(Select.name, Select);
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
